Skip to content

[tuple.syn] fix ignore-type::operator= return type #7840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Tsche
Copy link

@Tsche Tsche commented Apr 15, 2025

ignore-type's operator= is currently specified as

constexpr const ignore-type operator=(const auto &) const noexcept { return *this; }

this should instead return const ignore-type&.

@Eisenwave noted P2968R2 specifies ignore-type as

+// ignore
+struct ignore-type { // exposition only
+  constexpr const ignore-type&
+    operator=(const auto &) const noexcept
+      { return *this; }
+};
+inline constexpr ignore-type ignore;
// 22.4.5, tuple creation functions
-inline constexpr unspecified ignore;

however, #7109 drops the reference qualification on ignore-type::operator='s return type. Therefore I believe this is an editorial issue.

@jensmaurer
Copy link
Member

@jwakely , do you agree?

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants